<#if packageStyle == "service">
package ${sourceBasePackage}.${entityPackage}.service;

import ${sourceBasePackage}.${entityPackage}.entity.${className};
<#else>
package ${sourceBasePackage}.service.${entityPackage};

import ${sourceBasePackage}.entity.${entityPackage}.${className};
</#if>
import java.util.List;

import com.idp.common.persistence.Page;

/**
 * ${description}service接口
 * @author ${author}
 * @date ${createDate}
 */
public interface ${className}Service{
	
 	/**
	 * 分页查询
	 * @param ${className?uncap_first}
	 * @param page
	 * @return
	 */
	public Page<${className}> findByPage(${className} ${className?uncap_first},Page<${className}> page);
	
	/**
	 * 	查询
	 * @param ${className?uncap_first}
	 * @return
	 */
	public List<${className}> findBySearch(${className} ${className?uncap_first});
	
	/**
	 * 	${createDate} ${author}
	 * 	通过ID查询
	 * @param ${className}
	 * @return
	 */
	public ${className} getById(${pkType} ${pkField});
	
	/**
	 * 	新增
	 * @param ${className?uncap_first}
	 */
	public void add(${className} ${className?uncap_first});
	
	/**
	 * 	修改
	 * @param ${className?uncap_first}
	 */
	public void update(${className} ${className?uncap_first});
	
	/**
	 * 	删除
	 * @param ${pkField}
	 */
	public void delete(${pkType} ${pkField});
}
